<template>
  <div>
    <todoItem v-for="(item,index) in todo" :key="item.id+index" :item="item"/>
  </div>
</template>

<script>
import todoItem from "./todoItem.vue";
import {mapState} from "vuex"

export default {
  name: "todoList",
  components: {
    todoItem,
  },
  computed:{
    ...mapState(["todo"])
  }
};
</script>

<style scoped>
</style>